import sys
import logging                                                                  # запись логов

from PyQt5.QtWidgets import *
from PyQt5.QtCore import *



class mymainwindow(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self, None, Qt.Tool | Qt.WindowStaysOnTopHint)

app = QApplication(sys.argv)

def signal():
    global mywindow
    mywindow = mymainwindow()
    mywindow.show()
    mywindow.raise_()
    mywindow.activateWindow()


t = QTimer()
t.start(10000)
t.timeout.connect(signal)

app.exec_()
